{{define "mobile/ordinary/pastMH.html"}}
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<meta name="format-detection" content="telephone=no">
	<title>既往病史</title>
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/weui.css"/>
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/example.css"/>
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/base.css?v=2" />
</head>
<body ontouchstart>
	<div  class="header">既往病史</div>
	<div class="container" id="container">
		<div class="page flex js_show">
			<div class="page__bd" style="height: 100%;">
				<div class="weui-tab">
					<div class="weui-tab__panel">
						<div class="page__bd page__bd_spacing">
							<div class="_cut"></div>
							<div class="personal second-title">脑血管病</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">脑卒中病史：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  " id="naocuzhong">无</div>
									<div class=" weui-ws_three   hide">发病次数：<span id="naocuzhong_fabingcishu"></span></div>
									<div class=" weui-ws_three   hide">症状：<span id="naocuzhong_zhengzhuang"></span></div>
									<div class=" weui-ws_three   hide">体征：<span id="naocuzhong_tizheng"></span></div>
								</div>
							</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">短暂性脑缺血发作病史：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  " id="naoquexue">无</div>
									<div class=" weui-ws_three   hide">发病次数：<span id="naoquexue_fabingcishu"></span></div>
									<div class=" weui-ws_three   hide">症状：<span id="naoquexue_zhengzhuang"></span></div>
									<div class=" weui-ws_three   hide">体征：<span id="naoquexue_tizheng"></span></div>
								</div>
							</div>
							<div class="_cut"></div>
							<div class="personal second-title">心脏病</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">是否有心脏病史：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  " id="xinzangbing">无</div>
									<div class=" weui-ws_three   hide">心脏病类型：<span id="xinzangbing_leixing">冠心病</span></div>
									<div class=" weui-ws_three   hide" id="guanxinbing">冠心病首次确诊时间：<span id="gxb_shouciquezhenshijian"></span></div>
									<div class=" weui-ws_three   hide" id="fangchan">房颤首次确诊时间：<span id="fc_shouciquezhenshijian"></span></div>
									<div class=" weui-ws_three   hide" id="shifoufuyongyaowu">是否服用抗栓、抗凝药物：<span id="fc_is_fuyao">无</span></div>
									<div class=" weui-ws_three   hide">用药品种：<span id="fc_yongyao_pinzhong"></span></div>
									<div class=" weui-ws_three   hide">用药年限：<span id="fc_yongyao_nianxian"></span></div>
									<div class=" weui-ws_three   hide">用药情况：<span id="fc_yongyao_qingkuang"></span></div>
									<div class=" weui-ws_three   hide">就诊机构级别：<span id="xinzangbing_jiuzhenjigoujibie"></span></div>
								</div>
							</div>
							<div class="_cut"></div>
							<div class="personal second-title">高血压</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">是否有高血压病史：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  " id="gaoxueya">有</div>
									<div class=" weui-ws_three   hide">高血压首次确诊时间：<span id="gxy_shouciquezhenshijian"></span></div>
									<div class=" weui-ws_three   hide">是否服用降压药：<span id="gxy_is_fuyao"></span>
										<div class=" weui-ws_three  ">用药品种：<span id="gxy_yongyao_pinzhong"></span></div>
										<div class=" weui-ws_three  ">用药年限：<span id="gxy_yongyao_nianxian"></span></div>
										<div class=" weui-ws_three  ">用药情况：<span id="gxy_yongyao_qingkuang"></span></div>
									</div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">血压控制情况：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="gxy_kongzhiqingk">达标</div>
								</div>
							</div>
							<div class="_cut"></div>
							<div class="personal second-title">血脂异常</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">是否有血脂异常：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  " id="xzyc">无</div>
									<div class=" weui-ws_three   hide">血脂异常确诊时间：<span id="xzyc_shouciquezhenshijian"></span></div>
									<div class=" weui-ws_three   hide">血脂异常类型：<span id="xzyc_leixing"></span></div>
									<div class=" weui-ws_three   hide">是否服用降脂药<span id="xzyc_is_fuyao">否</span>
										<div class=" weui-ws_three   hide">用药品种：<span id="xzyc_yongyao_pinzhong"></span></div>
									</div>
								</div>
							</div>
							<div class="_cut"></div>
							<div class="personal second-title">糖尿病</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">是否有糖尿病病史：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  " id="tnb">有</div>
									<div class=" weui-ws_three   hide">糖尿病确诊时间：<span id="tnb_shouciquezhenshijian"></span></div>
									<div class=" weui-ws_three   hide">是否服用降糖药：<span id="tnb_is_fuyao">否</span>
										<div class=" weui-ws_three   hide">用药品种：<span id="tnb_yongyao_pinzhong"></span></div>
									</div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">血糖控制情况：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="tnb_kongzhiqingk">达标</div>
								</div>
							</div>

							<div class="_cut"></div>
							<div class="personal second-title">同型半胱氨酸水平</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">是否正常：</div>
								</div>
								<div class="weui-flex__item">
									<div class=" weui-ws_three  "  id="gas"></div>
									<div class=" weui-ws_three   hide">是否药物控制：<span id="gas_is_fuyao"></span>
										<div class=" weui-ws_three   hide">用药品种：<span id="gas_yongyao_pinzhong"></span></div>
									</div>
								</div>
							</div>
						</div>
						<div class="button-sp-area cell">
				          	<a onclick="history.back(-1);return false;" class="weui-btn_cell weui-btn_cell-default">返回</a>
				        </div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="/res/mobile/js/zepto.min.js"></script>
	<script type="text/javascript" src="/res/mobile/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="/res/mobile/js/weui.min.js"></script>
	<!-- <script type="text/javascript" src="/res/mobile/js/example.js"></script> -->
	<script type="text/javascript" src="/res/mobile/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" class="tabbar js_show">
		$(function(){
			//获取用户信息
			$.post("/mobile/ordinary/getUserData",{},function(r){
				if(r){
					if(r.code!=1){
						window.location.href="/mobile/ordinary/login"
					}else{
						var pastMedicalHistory = r.data["pastMedicalHistory"]
						if (pastMedicalHistory){
							$.each(pastMedicalHistory,function(i,v){
								if ((i=="naocuzhong"||i=="naoquexue")&&v=="有"){
									 $("#"+i).nextAll().removeClass("hide");
								}
								if (i=="xinzangbing"&&v=="有"){
									$("#xinzangbing").next().removeClass("hide");
									$("#xinzangbing").siblings().last().removeClass("hide");
								}
								if(i=="xinzangbing_leixing"&&v!=""){
									if(v.indexOf("冠心病")>-1){
										$("#guanxinbing").removeClass("hide");
									}
									if(v.indexOf("房颤")>-1){
										$("#fangchan").removeClass("hide");
										$("#shifoufuyongyaowu").removeClass("hide");
									}
								}
								if(i=="fc_is_fuyao"&&v=="是"){
									$("#shifoufuyongyaowu").nextAll().removeClass("hide");
								}
								if(i=="gaoxueya"&&v=="有"){
									$("#gaoxueya").next().removeClass("hide");
								}
								if(i=="gxy_is_fuyao"&&v=="是"){
									$("#gxy_is_fuyao").parent().removeClass("hide");
								}
								if(i=="xzyc"&&v=="有"){
									$("#xzyc").nextAll().removeClass("hide");
								}
								if(i=="xzyc_is_fuyao"&&v=="是"){
									$("#xzyc_is_fuyao").next("div").removeClass("hide");
								}
								if(i=="tnb"&&v=="有"){
									$("#tnb").nextAll().removeClass("hide");
								}
								if(i=="tnb_is_fuyao"&&v=="是"){
									$("#tnb_is_fuyao").next("div").removeClass("hide");
								}
								if(i=="gas"&&v=="异常"){
									$("#gas").next().removeClass("hide");
								}
								if(i=="gas_is_fuyao"&&v=="是"){
									$("#xzyc_is_fuyao").next("div").removeClass("hide");
								}
								// $("#"+v).nextAll().removeClass("hide");
								$("#"+i).text(v);
							})
						}
					}
				}else{
					window.location.href="/mobile/ordinary/login"
				}
			})
		});
	</script>
</body>
</html>
{{end}}